package com.xucranger.ojapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xucranger.ojapi.enity.DTO.CodeforcesQueryDTO;
import com.xucranger.ojapi.enity.VO.RankVO;
import com.xucranger.ojapi.enity.domain.Atcoder;
import com.xucranger.ojapi.enity.domain.Codeforces;
import jdk.jfr.MemoryAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
* @author xucranger
* @description 针对表【codeforces】的数据库操作Mapper
* @createDate 2022-08-16 10:18:51
* @Entity com.xucranger.ojapi.enity.domain.codeforces
*/

public interface CodeforcesMapper extends BaseMapper<Codeforces> {


    List<Codeforces> queryContestByPage(Page page,@Param("queryDTO") CodeforcesQueryDTO queryDTO);

    List<Codeforces> queryCareeByCfid(@Param("cfid") String cfid);

    List<RankVO> rank(Page page,@Param("type") String type);
}
